/*
 * Translated from the Koprina project, a Java implementation of the Skype SILK codec
 * http://code.google.com/p/koprina/
 */

using System;
using System.Diagnostics;

namespace SilkSharp
{
	public class Silk_typedef
	{
		public static int SKP_STR_CASEINSENSITIVE_COMPARE( string x, string y )
		{
			return x.CompareTo( y );
		}

		public const long SKP_int64_MAX = 0x7FFFFFFFFFFFFFFFL;   //  2^63 - 1  
		public const long SKP_int64_MIN = unchecked( (long)0x8000000000000000L );   // -2^63     
		public const int SKP_int32_MAX = 0x7FFFFFFF;             //  2^31 - 1 =  2147483647
		public const int SKP_int32_MIN = unchecked( (int)0x80000000 );             // -2^31     = -2147483648
		public const short SKP_int16_MAX = 0x7FFF;               //  2^15 - 1 =  32767
		public const short SKP_int16_MIN = unchecked( (short)0x8000 );        // -2^15     = -32768
		public const byte SKP_int8_MAX = 0x7F;                  //  2^7 - 1  =  127
		public const byte SKP_int8_MIN = (byte)0x80;            // -2^7      = -128

		public const long SKP_uint32_MAX = 0xFFFFFFFFL;  // 2^32 - 1 = 4294967295
		public const long SKP_uint32_MIN = 0x00000000L;
		public const int SKP_uint16_MAX = 0xFFFF;        // 2^16 - 1 = 65535
		public const int SKP_uint16_MIN = 0x0000;
		public const short SKP_uint8_MAX = 0xFF;        //  2^8 - 1 = 255
		public const short SKP_uint8_MIN = 0x00;

		public const bool SKP_TRUE = true;
		public const bool SKP_FALSE = false;

		/* assertions */
		public static void SKP_assert( bool COND )
		{
			Debug.Assert( COND );
		}
	}
}
